import {movieRequest} from '../../api/api';
import {GETMOVIELIST} from '../constant/movie'
import store from '../store';

export const getMovieAction = () => {
    return async () => {
        const re = await movieRequest();
        store.dispatch({
            type : GETMOVIELIST,
            data:re.data.data.list
        })
    }
}
